<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>String</title>
</head>
<body>
<!--变量表达式默认从 Model Attribute 中获取数据，进行赋值(输出)、拼接等操作。-->
赋值：<span th:text="${userName}">userName</span><br />
拼接：<span th:text="'Hello '+${userName}+'！'">Hello userName！</span><br />
<!--字符串拼接还有另外一种简洁的写法：-->
拼接：<span th:text="|Hello ${userName}!|">Hello userName！</span><br />
</body>
</html>